package org.achartengine.internal.model;

import java.util.ArrayList;
import java.util.List;

/* loaded from: classes2.dex */
public class d extends a {
    private List<Double> a;

    public d(String str) {
        super(str);
        this.a = new ArrayList();
    }

    public synchronized void a(double d, double d2) {
        super.a(d);
        this.a.add(Double.valueOf(d2));
    }

    public synchronized void a(String str, double d, double d2) {
        super.a(str, d);
        this.a.add(Double.valueOf(d2));
    }

    @Override // org.achartengine.internal.model.a
    public synchronized void a(int i) {
        super.a(i);
        this.a.remove(i);
    }

    @Override // org.achartengine.internal.model.a
    public synchronized void b() {
        super.b();
        this.a.clear();
    }

    public double d(int i) {
        return b(i);
    }

    public double e(int i) {
        return this.a.get(i).doubleValue();
    }

    @Override // org.achartengine.internal.model.a
    public h d() {
        h hVar = new h(a());
        int c = c();
        int i = 0;
        while (i < c) {
            int i2 = i + 1;
            double d = i2;
            hVar.a(d, d(i));
            hVar.a(d, e(i));
            i = i2;
        }
        return hVar;
    }
}
